package org.xdq.demo.components.impl;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.xdq.demo.components.Usb;

@Component// id默认为（首字母小写）类名
@Qualifier("abc")//这里的@Qualifier用于指定匹配别名
public class UDisk implements Usb {
    @Override
    public void work() {
        System.out.println("U盘在存储信息。。。。。。");
    }
}
